'\" te
.\" Copyright (c) 1997, Sun Microsystems, Inc.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH DDI_DMA_SET_SBUS64 9F "Jan 1, 1997"
.SH NAME
ddi_dma_set_sbus64 \- allow 64-bit transfers on SBus
.SH SYNOPSIS
.nf
#include <sys/ddi.h>
#include <sys/sunddi.h>



\fBint\fR \fBddi_dma_set_sbus64\fR(\fBddi_dma_handle_t\fR \fIhandle\fR, \fBuint_t\fR \fIburstsizes\fR);
.fi

.SH INTERFACE LEVEL
illumos DDI specific (illumos DDI).
.SH PARAMETERS
.ne 2
.na
\fB\fIhandle\fR \fR
.ad
.RS 15n
The handle filled in by a call to \fBddi_dma_alloc_handle\fR(9F).
.RE

.sp
.ne 2
.na
\fB\fIburstsizes\fR \fR
.ad
.RS 15n
The possible burst sizes the device's \fBDMA\fR engine can accept in 64-bit
mode.
.RE

.SH DESCRIPTION
\fBddi_dma_set_sbus64()\fR informs the system that the device wishes to perform
64-bit data transfers on the SBus. The driver must first allocate a  \fBDMA\fR
handle using  \fBddi_dma_alloc_handle\fR(9F) with a \fBddi_dma_attr\fR(9S)
structure describing the  \fBDMA\fR attributes for a 32-bit transfer mode.
.sp
.LP
\fIburstsizes\fR describes the possible burst sizes the device's  \fBDMA\fR
engine can accept in 64-bit mode. It may be  distinct from the burst sizes for
32-bit mode set in the  \fBddi_dma_attr\fR(9S) structure. The system will
activate 64-bit SBus transfers if the SBus supports them. Otherwise, the SBus
will operate in 32-bit mode.
.sp
.LP
After  \fBDMA\fR resources have been allocated (see
\fBddi_dma_addr_bind_handle\fR(9F) or  \fBddi_dma_buf_bind_handle\fR(9F)), the
driver should retrieve the available burst sizes by calling
\fBddi_dma_burstsizes\fR(9F). This function will return the burst sizes  in
64-bit mode if the system was able to  activate 64-bit transfers.  Otherwise
burst sizes will be  returned in 32-bit mode.
.SH RETURN VALUES
\fBddi_dma_set_sbus64()\fR returns:
.sp
.ne 2
.na
\fB\fBDDI_SUCCESS\fR \fR
.ad
.RS 16n
Successfully set the SBus to 64-bit mode.
.RE

.sp
.ne 2
.na
\fB\fBDDI_FAILURE\fR \fR
.ad
.RS 16n
64-bit mode could not be set.
.RE

.SH CONTEXT
\fBddi_dma_set_sbus64()\fR can be called from user, kernel, or interrupt
context.
.SH ATTRIBUTES
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Architecture	SBus
.TE

.SH SEE ALSO
.BR attributes (7),
.BR ddi_dma_addr_bind_handle (9F),
.BR ddi_dma_alloc_handle (9F),
.BR ddi_dma_buf_bind_handle (9F),
.BR ddi_dma_burstsizes (9F),
.BR ddi_dma_attr (9S)
.SH NOTES
64-bit SBus mode is activated on a per SBus slot basis. If there are multiple
SBus cards in one slot, they all must operate in 64-bit mode or they all must
operate in 32-bit mode.
